<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.css}">
</head>
<body>
    <table>
        <thead>
            <tr>
                <th>序号</th>
                <th>姓名</th>
                <th>年龄</th>
                <th>性别</th>
            </tr>
        </thead>
        <tbody>
            <tr th:each="stu,stuindex : ${stuList}">
                <td th:text="${stuindex.index}"></td>
                <td th:text="${stu.name}"></td>
                <td th:text="${stu.age}"></td>
                <td th:if="${stu.gender == 0}" th:text="男"></td>
                <td th:if="${stu.gender == 1}" th:text="女"></td>
            </tr>
        </tbody>
    </table>
</body>
</html>